<?php $this->headScript()->appendFile($this->JS_PATH . 'form_company.js'); ?>
<link rel="stylesheet" href="<?php echo $this->CSS_PATH ?>main.css">
<div id="company-listing"></div>
<div class="content">
    <div class="page-title"> <i class="icon-custom-right"></i>
        <h3><span class="semi-bold"><?php echo $this->mode;?> Company</span></h3>
    </div>
    <div class="row">
        <div class="col-md-12">
            <div class="grid simple">
                <div class="grid-title"></div>
                <div class="grid-body ">
                    <div class="row">
						<?php if (count($this->errorMessageArray) > 0): ?>
                            <div class="alert alert-error">
                                <?php foreach ($this->errorMessageArray as $erroValue): ?>
                                    <div class="text-left">
                                        <i class="icon-remove-sign"></i>
                                        <?php echo $erroValue; ?>
                                    </div>
                                <?php endforeach; ?>
                            </div>
                        <?php endif; ?>

						<form role="form"  id="company-form" name="company-form"  enctype="multipart/form-data"  action="" method="post">
						   
							<div class="row form-row">
								<div class="col-md-3">
									<label class="form-label">Client Name</label>
									<?php echo $this->form->comp_client_id; ?>
								</div>
							
								<div class="col-md-3">
									<label class="form-label">Company Name
										<span class="span_required">*</span>
									</label>
									<?php echo $this->form->comp_name; ?>
								</div>
								
								<div class="col-md-3">
									<label class="form-label">Company Type</label>
									<?php echo $this->form->comp_type; ?>
								</div>
							</div> 
							
							<div class="row form-row">
								<div class="col-md-3">
									<label class="form-label">Company Industry</label>
									<?php echo $this->form->comp_industry; ?>
								</div>
								
								<div class="col-md-3">
									<label class="form-label">Company Currency</label>
									<?php echo $this->form->comp_currency; ?>
								</div>
								
								<br/>
								<div class="col-md-3">
									<?php 
										$checked = "";
										if ($this->comp_available_to_everyone == 1) {
										  $checked = "checked";
										} 
									?>
									<label>
										<input type="checkbox" name="comp_available_to_everyone" <?php echo $checked;?> value="1">&nbsp; Company available to everyone
									</label>
								</div>
							</div> 
							
							<div class="row form-row">
								<div class="col-md-3">
									<label class="form-label">Email
										<span class="span_required">*</span>
									</label>
									<?php echo $this->form->comp_email; ?>
								</div>
							
								<div class="col-md-3">
									<label class="form-label">Phone No.
										<span class="span_required">*</span>
									</label>
									<?php echo $this->form->comp_phone; ?>
								</div>
								
								<div class="col-md-3">
									<label class="form-label">Company Site</label>
									<?php echo $this->form->comp_site; ?>
								</div>
							</div>
							
							<div class="row form-row">
								<div class="col-md-3">
									<label class="form-label">Address1</label>
									<?php echo $this->form->comp_adrline1; ?>
								</div>
							
								<div class="col-md-3">
									<label class="form-label">Address2</label>
									<?php echo $this->form->comp_adrline2; ?>
								</div>
							
								<div class="col-md-3">
									<label class="form-label">Address3</label>
									<?php echo $this->form->comp_adrline3; ?>
								</div>
							</div>
							
							<div class="row form-row">
								<div class="col-md-3">
									<label class="form-label">Company Street</label>
									<?php echo $this->form->comp_street; ?>
								</div>
							
								<div class="col-md-3">
									<label class="form-label">Company Postal</label>
									<?php echo $this->form->comp_postal; ?>
								</div>
								
								<div class="col-md-3">
									<label class="form-label">City</label>
									<?php echo $this->form->comp_city; ?>
								</div>
							</div>
							
							<div class="row form-row">
								<div class="col-md-3">
									<label class="form-label">Comment</label>
									<?php echo $this->form->comp_comment ; ?>
								</div>
							
								<div class="col-md-3">
									<label class="form-label">Country</label>
									<?php echo $this->form->comp_country; ?>
								</div>
								
								<div class="col-md-3">
									<label class="form-label">Payment Detail</label>
									<?php echo $this->form->comp_payment_details; ?>
								</div>
							</div> 
							
							<div class="row form-row">
								<div class="col-md-3">
									<label class="form-label">Status
										<span class="span_required">*</span>
									</label>
									<?php echo $this->form->comp_status; ?>
								</div>
							</div>
								 
						   <div class="col-md-6">
								<?php if ($this->mode == 'Edit'): ?>
									<input type="submit" value="Update" class="submitfrmbtn btn btn-primary" name="Update"/>
								<?php else: ?>
									<input type="submit" value="Submit" class="submitfrmbtn   btn btn-primary" name="Submit"/>
								<?php endif; ?>
									<a href="<?php echo $this->url(array('module' => 'admin', 'controller' => 'company', 'action' => 'form'), null, TRUE); ?>" class="btn btn-default"/>
										Cancel
									</a>
							</div>
						</form>
					</div>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- END PAGE -->                
